import { Operation } from '../operations/operation'
export class UndoModel {
    stepList_: Operation[][] = []
    addStep (operation: Operation[]) {
        this.stepList_.push(operation)
        console.log(this.getStep(), 'stepList_')
    }
    getStep () {
        return this.stepList_
    }
    popStep () {
        return this.stepList_.pop()
    }
}